#include "List.h"

void ListTest01()
{
	//创建双向链表
	LTNode* pList = NULL;
	LTInit(&pList);

	//LTPushBack(pList, 1);
	//LTPushBack(pList, 2);
	//LTPushBack(pList, 3);

	LTPushFront(pList,3);
	LTPushFront(pList,2);
	LTPushFront(pList,1);

	
	//LTPopBack(pList);
	//LTPopFront(pList);
	/*Print(pList);*/

	LTNode* pos = LTFind(pList, 2);

	LTInsert(pos, 6);
	Print(pList);
	if (pos == NULL)
	{
		printf("没有找到");
	}
	else
	{
		printf("找到了");
	}
}



int main()
{
	ListTest01();


	return 0;
}